export default class Vector3 {
  public x: number;
  public y: number;
  public z: number;

  constructor(x = 0, y = 0, z = 0) {
    this.x = x;
    this.y = y;
    this.z = z;
  }

  public static ObjToVector3(obj: { x: number; y: number; z: number }) {
    return new Vector3(obj.x, obj.y, obj.z);
  }

  public static NumberToVector3(num: number, axis: { x: number; y: number; z: number }): Vector3 {
    return new Vector3(num * axis.x, num * axis.y, num * axis.z);
  }

  public static Zero(): Vector3 {
    return new Vector3(0, 0, 0);
  }
}
